using RebelStar.Engine.Units.Equipments.Weapons;

namespace RebelStar.Engine.Units.Equipments
{
    public class EquipmentSlot
    {
        readonly string name;
        Weapon weapon;

        public EquipmentSlot(string name) : this (name, null)
        {}
        public EquipmentSlot(string name, Weapon weapon)
        {
            this.name = name;
            this.weapon = weapon;
        }

        public string Name
        {
            get { return name; }
        }
        public Weapon Weapon
        {
            get { return weapon; }
            set { weapon = value; }
        }
        public bool IsAvailable
        {
            get { return weapon != null; }
        }
    }
}